package wow.data
{
	import mx.collections.ArrayList;

	public class Spell
	{
		[Bindable] public var id:int;
		[Bindable] public var texte:String;
		[Bindable] public var icone:String;
		[Bindable] public var tooltip:String;
		[Bindable] public var cd:int;
		[Bindable] public var duration:int;
		[Bindable] public var target_type:int;
		[Bindable] public var spell_type:int;
		
		public function Spell(id:int, texte:String, icone:String, tooltip:String, cd:int, duration:int, target_type:int, spell_type:int)
		{
			this.id = id;
			this.texte = texte;
			this.icone = icone;
			this.tooltip = tooltip;
			
			if (cd > 0)
			{
				this.tooltip += " " + cd + " turns CD.";
			}
			
			this.cd = cd;
			this.duration = duration;
			this.target_type = target_type;
			this.spell_type = spell_type;
		}
	}
}